import request from '@/utils/request'

/* 发现首页 */
export function getFind(data) {
  return request({
    url: '/news/lists',
    method: 'post',
    data
  })
}

/* 发现-资讯详情 */
export function detailFind(params) {
  return request({
    url: '/news/details',
    method: 'get',
    params
  })
}

/* 资讯 - 04.报考指南分类 */
export function getCates(data) {
  return request({
    url: '/news/cates',
    method: 'post',
    data
  })
}

/* 资讯 - 04.报考指南详情 */
export function getGuide(data) {
  return request({
    url: '/news/guide',
    method: 'post',
    data
  })
}

/* 收藏资讯 */
export function favNews(data) {
  return request({
    url: '/news/fav',
    method: 'post',
    data
  })
}
